package com.xiaoyu.lanling.feature.coin.model

import `in`.srain.cube.request.JsonData
import `in`.srain.cube.views.list.ListItemTypedBase
import java.io.Serializable

class CoinExchangeItem(jsonData: JsonData) : ListItemTypedBase, Serializable {

    val id = jsonData.optString("id")
    val image = jsonData.optString("image")
    val title = jsonData.optString("productName")
    val costPoint = jsonData.optInt("costPoint")
    val tag = jsonData.optString("tag")

    override fun getViewType(): Int {
        return 0
    }
}